﻿@* Ui层项目 - 模块文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    Model.Output.FileNameNoExtension = service.GetClientModuleFileName();
    Model.Output.Extension = ".ts";
    Model.Output.RelativeRootPath = $"src/{service.GetClientModulePath()}";
}
import { NgModule } from '@@angular/core';
import { SharedModule } from '../../shared';
import { @service.GetClientRoutingModuleClassName() } from './@service.GetClientRoutingModuleFileName()';
@foreach (var entity in service.GetEntities())
{
    <text>
import { @service.GetClientListClassName(entity) } from './@service.GetClientEntityFileName(entity)/@(service.GetClientListFileName( entity ))';
import { @service.GetClientEditClassName(entity) } from './@service.GetClientEntityFileName(entity)/@(service.GetClientEditFileName( entity ))';
import { @service.GetClientDetailClassName(entity) } from './@service.GetClientEntityFileName(entity)/@(service.GetClientDetailFileName( entity ))';
    </text>
}

/**
* @(Model.ProjectContext.Client.AppName)模块
*/
@@NgModule( {
    declarations: [
@foreach (var entity in service.GetEntities())
{
<text>      @service.GetClientListClassName(entity),@service.GetClientEditClassName(entity),@service.GetClientDetailClassName(entity),
</text>
}
    ],
    imports: [
        SharedModule,@service.GetClientRoutingModuleClassName()
    ],
    providers: [
    ]
} )
export class @service.GetClientModuleClassName() {
}
